FROM alpha-harbor.51iwifi.com/base/openresty:V1.0.0 

MAINTAINER likegadfly@163.com
#添加nginx 配置文件
ADD ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
#添加upstream.lua 推送网关用到了
ADD ./upstreams.lua  /usr/local/openresty/lualib/upstreams.lua
#创建文件夹
RUN  mkdir -p /usr/local/openresty/nginx/servers
#通过consul 来获取注册的服务的ip地址 然后加上端口号
ADD  ./tcp_consul.conf /usr/local/openresty/nginx/servers/tcp_consul.conf
#创建
RUN  mkdir -p /usr/local/openresty/lualib/resty/
#添加原始的库 http库
ADD ./http_headers.lua /usr/local/openresty/lualib/resty/

ADD ./http.lua /usr/local/openresty/lualib/resty/
# 装维的redis 置换token
ADD ./redisToken.lua /usr/local/openresty/lualib/

#这个其实不需要的
#ADD ./lualib/redis_slot.c /usr/local/openresty/lualib/
#添加lulib的包到 用于redis 集群请求
ADD ./lualib/redis_slot.so /usr/local/openresty/lualib/
#添加lulib的包到 用于redis 集群请求
ADD ./lualib/resty/rediscluster.lua /usr/local/openresty/lualib/resty/

#业务的
RUN  mkdir -p /usr/local/openresty/lualib/com/awifi/capacity/gcd/bridge/
ADD ./lualib/com/awifi/capacity/gcd/bridge/group_api_redis_cluster.lua  /usr/local/openresty/lualib/com/awifi/capacity/gcd/bridge/group_api_redis_cluster.lua
#暴露8080端口http 和39999 tcp端口
#EXPOSE 8080/tcp 39999/tcp
#现在的想法是将整个的文件夹放到lualib里旧可以了
#将所有的文件都放到 lualib下即可了 不需要一个一个移动了太麻烦了

copy src /usr/local/openresty/lualib/


RUN echo " nginx "

      

